﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="PropertyManagement.login.login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        *{
            margin:0;
            padding:0;
        }
        body{
            width:230px;
            height:180px;
            margin:0 auto;
            margin-top:20px;
        }
        #div0{
            width:100%;
            height:180px;
            border:2px solid #f49b5b;
            border-radius:10px;
        }
        #div1{
            width:230px;
            height:41px;
            background-image:url("../picture/dengl_01.jpg");
            margin-top:-2px;
            margin-left:-2px;
            margin-bottom:5px;
        }
        table{
            width:100%;
            padding-left:15px;
            margin-bottom:5px;
        }
        #div2{
            width:80%;
            margin-left:20px;
            text-align:center;
        }
        #Button1,#Button2{
            width:65px;
            height:28px;
            border-radius:8px;
            background-color:#bab7b7;
            color:#fff;
            font-weight:500;
            font-size:14px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
            <div id="div0">
            <div id="div1"></div>
                <table>
                    <tr>
                        <td>
                            用户名：<asp:TextBox ID="TextBox1" runat="server"  Width="120px"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            密&nbsp;&nbsp;&nbsp;码：<asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="120px"></asp:TextBox><br />
                        </td>
                    </tr>
                    <tr>
                        <td class="yan" >
                            验证码：<asp:TextBox ID="TextBox3" runat="server" Width="65px"></asp:TextBox>
                             <img alt="验证码" src="ValidateImage.aspx" id="Image1"/>
                        </td>
                    </tr>
                </table>
            <div id="div2">
                <asp:Button ID="Button1" runat="server" Text="登录" OnClick="Button1_Click" />
                &nbsp;<asp:Button ID="Button2" runat="server" Text="注册" OnClick="Button2_Click" />
            </div>
         </div>

    </form>
</body>
    <script type="text/javascript" src="../script/jquery-3.4.1.min.js"></script>
    <script type="text/javascript">
        $().ready(function () {
            $("#Image1").click(function () {
                $(this).attr("src", "ValidateImage.aspx?code=" + (new Date()).getTime());
            });
        });
    </script>
</html>
